﻿@using EasyUIMvc
@{
    ViewBag.Title = "Window";
}

<h2>Window</h2>

@Html.EasyUI().Window(settings=>{
    settings.Id="window";
    settings.Title="Window Sample";
    settings.DataOptions = "iconCls:'icon-save',modal:true";
    settings.Style = "width:600px;height:400px";
}).Content("This is for test").GetHtml();
@*<div id="win" class="easyui-window" title="My Window" style="width:600px;height:400px"  
        data-options="iconCls:'icon-save',modal:true">  
    Window Content  
</div>  *@
@*<div id="win" class="easyui-window" title="My Window" style="width:600px;height:400px"  
        data-options="iconCls:'icon-save',modal:true">  
    <div class="easyui-layout" data-options="fit:true">  
        <div data-options="region:'north',split:true" style="height:100px"></div>  
        <div data-options="region:'center'">  
            The Content.  
        </div>  
    </div>  
</div>  *@
<button onclick="$('#window').window('open')">测试窗口</button>